<div class="ratings">
  <div class="top"></div>
  <div class="main" id="ratings_content">
    <%= render :partial => "content" %>
  </div>
  <div class="bottom"></div>
</div>

<%= javascript_tag( %Q(
  Event.observe(window, "load", function() {
    Ratings.startLoad();
    new Ajax.Request('/ratings/load_ratings', 
      { asynchronous:true, 
        evalScripts:true, 
        method:'get', 
        onComplete:function(request) {
          Ratings.stopLoad();
        }, 
        onSuccess:function(request) {
          Ratings.populateRating(request.responseText.evalJSON());
        },
        parameters:'guid=' + Guid.get()
      });
  });
)) %>  
